import http from "@/utils/request.js"

export function addCart(data) {
  return http.request({
    url: '/system/cart',
    method: 'post',
    data: data
  })
}

export function listCart(query) {
  return http.request({
    url: '/system/cart/list',
    method: 'get',
    params: query
  })
}

export function editnum(data) {
  return http.request({
    url: '/system/cart',
    method: 'put',
    data:data
  })
}

export function deleteById(ids) {
	return http.request({
		url:'/system/cart/'+ids,
		method:'delete'
	})
}


